package com.wujiansima.renyisima.demo.demo4;

public class Demo {
    public static void main(String[] args) {
        MyTicket mt = new MyTicket();
        Thread t = new Thread(mt);
        Thread t1 = new Thread(mt);
        t.setName("一号窗口");
        t1.setName("二号窗口");
        t.start();
        t1.start();
    }
}
